const state = {
    navshow: false,
    navIndex: 1
};
const getters = {};
const mutations = {
    changeNavShow(state, show) {
        // 修改底下导航栏是否显示
        state.navshow = show;
    },
    changeIndex(state, index) {
        // 修改底下导航栏当前index
        state.navIndex = index;
    }
};
const actions = {
    change(context, show) {
        context.commit('changeNavShow', show)
    },
    navChange(context, index) {
        context.commit('changeIndex', index)
    }
};
export default {
    namespaced: true,
    state,
    getters,
    mutations,
    actions
}